package com.lxw.manage_cms.test;

import com.rabbitmq.client.Channel;
import com.rabbitmq.client.Connection;
import com.rabbitmq.client.ConnectionFactory;

import java.io.IOException;
import java.util.concurrent.TimeoutException;

public class Producer {
    public static void main(String[] args) throws IOException, TimeoutException {
        ConnectionFactory cf = new ConnectionFactory();
        cf.setHost("10.50.0.127");
        cf.setUsername("ywliu");
        cf.setPassword("ywliu");
        Connection connection = cf.newConnection();
        Channel channel = connection.createChannel();
        connection.close();
    }
}
